{extend  name="./member" /}

{block name="title"}我的评论{/block}

{block name="body"}

<table class="table table-hover">
    <thead>
    <th>句子</th>
    <th>评论</th>
    <th>创建时间</th>
    </thead>
    <tbody>
    {if condition="$comments->isEmpty()"}
    <tr>
        <td class="text-center color-gray" colspan="3">暂无数据</td>
    </tr>
    {else}
    {volist name="comments" id="comment"}
    <tr>
        <td><a href="{:url1('index/sentence/show', ['id' => $comment->sentence_id])}">句子</a></td>
        <td>{$comment->content}</td>
        <td>{$comment->create_time}</td>
    </tr>
    {/volist}
    {/if}
    </tbody>
</table>

<div class="text-right">
    {:htmlspecialchars_decode($comments->render())}
</div>

{/block}